package seo.dale.sac;

import java.util.List;

public class InterfaceMigration {
	
	private DocumentReader reader;
	private TableImporter importer;
	
	/**
	 * Read data form files and Import it to a DB table.
	 * @param path
	 */
	public void migrate(String tableName, String[] filePaths) {
		// 1) Read data for files.
		for (String f : filePaths) {
			System.out.println(f);
		}
		List<InterfaceInfo>  list = reader.read(filePaths);
		// 2) Import it to a DB table.
		System.out.println(tableName);
		importer.doImport(tableName, list);
	}

}
